<%--
  Created by IntelliJ IDEA.
  User: 0
  Date: 2024/9/23
  Time: 9:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<c:forEach items="${users}" var="user">
    <div>${user.id}</div>
    <div>${user.name}</div>
    <div>${user.password}</div>
</c:forEach>
</body>
</html>
<%--这里的users就是从userServlet传过来的,这里的user就是userservlet中的user集合--%>
<%--这里的id,name,password都是user类中的属性,他们设置为private也能访问--%>